package org.apache.dubbo.demo.consumer.example.eg1;

import org.apache.dubbo.demo.example.eg1.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
        "classpath:example/eg1/applicationContext.xml");
    DemoService demoService = (DemoService) context.getBean("demoService");
    String result = demoService.sayHello("world");
    System.out.println("**************************" + result + "**************************");
  }
}
